Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~~~ in [HAL] section of .ini ~~~
- POSTGUI_HALFILE = custom_panel.hal
- ~~~ in [DISPLAY] section of .ini ~~~
- PYVCP = custom_panel.xml
- ~~~ custom_panel.hal ~~~
- loadrt scale names=scale_vel
- addf scale_vel servo-thread
- setp scale_vel.gain 60
- net disp-velocity-per-second motion.current-vel => scale_vel.in
- net disp-velocity-per-minute scale_vel.out => pyvcp.velocity
- ~~~ custom_panel.xml ~~~
- <pyvcp>
- <label>
- <text>"Velocity (units/minute):"</text>
- </label>
- <bar>
- <halpin>"velocity"</halpin>
- <max_>600</max_>
- </bar>
- </pyvcp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement